package com.czh.gzskzn.shenke3.FragmentX;

import android.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;

import com.czh.gzskzn.shenke3.R;


/**
 * Created by gzsk on 2017/5/2.
 * name  陈忠红
 * email czhhx15599109256@163.com
 */

public class ReMenFargment extends Fragment {
    private ListView listReMen;
    View reMen;



    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        reMen = inflater.inflate(R.layout.remen_fagment, container, false);
//        实例化
        intiView();
        MyBaseAdater adapter  = new MyBaseAdater();
        listReMen.setAdapter(adapter);

        return reMen;
    }

    private void intiView() {
        listReMen = (ListView) reMen .findViewById(R.id.ist_remen);
    }



    class MyBaseAdater extends BaseAdapter {
        @Override
        public int getCount() {
            return 50;
//            return 1;
        }

        @Override
        public Object getItem(int position) {
            return null;
        }

        @Override
        public long getItemId(int position) {
            return 0;
        }

        @Override
        public View getView(int position, View convertView, ViewGroup parent) {



            if (convertView == null) {

            }
                convertView = View.inflate(getActivity(), R.layout.remen_itm, null);



            return convertView;
        }

    }


}
